package com.crazy.model.major.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 标签库
 * </p>
 *
 * @author ${author}
 * @since 2020-12-24
 */
@TableName("T_LABEL")
public class TLabel extends Model<TLabel> {

    /**
    * 所有字段名
    */
    public static class Columns {
        /**
        * 
        */
        public static final String id = "ID";
        /**
        * 标签名称
        */
        public static final String labelName = "LABEL_NAME";
        /**
        * 标签所属用户
        */
        public static final String userId = "USER_ID";
        /**
        * 创建时间
        */
        public static final String createTime = "CREATE_TIME";
        /**
        * 修改时间
        */
        public static final String updateTime = "UPDATE_TIME";
        /**
        * 是否有效(0：无效，1：有效)
        */
        public static final String valid = "VALID";
        /**
        * 别名
        */
        public static final String alias = "ALIAS";
        /**
        * 简介
        */
        public static final String introduction = "INTRODUCTION";
    }

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 标签名称
     */
    @TableField("LABEL_NAME")
    private String labelName;

    /**
     * 标签所属用户
     */
    @TableField("USER_ID")
    private Long userId;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;

    /**
     * 是否有效(0：无效，1：有效)
     */
    @TableField("VALID")
    private Integer valid;

    /**
     * 别名
     */
    @TableField("ALIAS")
    private String alias;

    /**
     * 简介
     */
    @TableField("INTRODUCTION")
    private String introduction;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLabelName() {
        return labelName;
    }

    public void setLabelName(String labelName) {
        this.labelName = labelName;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TLabel{" +
        "id=" + id +
        ", labelName=" + labelName +
        ", userId=" + userId +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", valid=" + valid +
        ", alias=" + alias +
        ", introduction=" + introduction +
        "}";
    }
}
